from microbit import *

while True:

    if pin0.is_touched():
        display.show('0')

    if pin1.is_touched():
        display.scroll('Hello!')

    if pin2.is_touched():
        display.show(Image.HEART)

    sleep(50)